package com.cheetah.utils;

import com.cheetah.dto.OrgDTO;
import com.cheetah.dto.UserDTO;
import com.cheetah.entity.LoginOut;
import com.cheetah.entity.Org;
import com.cheetah.entity.User;
import com.cheetah.vo.OrgVO;
import com.cheetah.vo.UserVO;
import org.mapstruct.Mapper;

import java.util.List;

/**
 * @Author Administrator
 * @Date 2019/9/13
 * @Version V1.0
 * @Description:
 **/
@Mapper(componentModel="spring")
public interface MapStructMapper {

    public LoginOut userDTO2LoginOut(UserDTO userDTO);

    public UserDTO user2userDto(User user);

    public User userDto2user(UserDTO user);

    public User userVO2user(UserVO userVO);

    public Org orgVO2org(OrgVO orgVO);

    public OrgDTO org2orgDto(Org org);

    public List<UserDTO> userListToUseDTOList(List<User> list);
}
